﻿using IceStart.Utils;
using System.Windows;
using System.Windows.Input;

namespace IceStart.ViewModel
{
    public class TaskbarIcon_ViewModel
    {
        public ICommand ShowWindowCommand
        {
            get
            {
                return new DelegateCommand
                {
                    CanExecuteFunc = () => true,
                    CommandAction = () =>
                    {
                        ((MainWindow)Application.Current.MainWindow).ShowWindow();
                    }
                };
            }
        }

        public ICommand ExitApplicationCommand
        {
            get
            {
                return new DelegateCommand { CommandAction = () => Application.Current.Shutdown() };
            }
        }
    }
}